package com.dongdongshop.service;

import com.dongdongshop.pojo.TbOrder;
import com.dongdongshop.pojo.TbUser;

import java.util.List;
import java.util.Map;

public interface OrderService {
    void addOrder(TbOrder tbOrder);

    Map<String, Object> createOrder(TbUser user, List<Long> ids, String paymentType, Long addressId, String sumPic);

    void updateAllOrder(String orderNum, String tradeNo);

    List<TbOrder> selectOrderByUserId(String username);

    TbOrder selectOrderByOrederNum(String orderNum);
}
